<template>
	<view>
		{{count}}
	</view>

</template>

<script setup>
import {ref} from "vue"
const  count=ref(100)
const update = (e) => {
    console.log('e=',e)
	count.value=e
}
//导出数据
defineExpose({
  count: count.value,
  //属性和值一样可以只写一个count
  update
})

</script>

<style lang="less">
image{
	width: 30px;
	height: 30px;
}
</style>